package cn.acewill.yxd.yunxundian.db;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

/**
 * Created by AAA on 2017/4/5.
 */

public class JsonDbOpenHelper extends SQLiteOpenHelper {

    private static  final String DB_NAME="yxd_data";
    private static final int  DB_VERSION=1;

    public JsonDbOpenHelper(Context context){
        super(context,DB_NAME,null,DB_VERSION);
    }

    @Override
    public void onCreate(SQLiteDatabase db) {
        String sql=" CREATE TABLE " + JsonDb.LOCAL_DATA + "("+ JsonDb.DATA_TYPE +" TEXT," + JsonDb.SERVER_ID + " INT ," + JsonDb.JSON_STR + "TEXT)";
                db.execSQL(sql);

    }

    @Override
    public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {

    }
}
